<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTeamProfitRatesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('team_profit_rates', function (Blueprint $table) {
            $table->increments('id');
            $table->string('rate')->comment('比率');
            $table->enum('type',['reference','shop'])->comment('分佣比率');
            $table->string('description')->comment('介绍');
            $table->unsignedBigInteger('created_at');
            $table->unsignedBigInteger('updated_at');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('team_profit_rates');
    }
}
